﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XRpgLibrary.CharacterClasses
{
    public struct EventScript
    {
        private const string SCRIPT_NS = "XRpgLibrary.Scripts.";

        public string EventName;
        public string ScriptName;
        public object[] ScriptArguments;

        public EventScript(string eventName, string scriptname, object[] args)
        {
            EventName = eventName;
            ScriptName = scriptname;
            ScriptArguments = args;
        }

        public override string ToString()
        {
            return String.Format("{0}: {1}", EventName, ScriptName.Replace(SCRIPT_NS, string.Empty));
        }
    }
}
